﻿#ifndef SUBDATAPROTOCOLEDITOR_H
#define SUBDATAPROTOCOLEDITOR_H
#include "systemparamdef.h"



namespace Ui {
class SubDataProtocolEditor;
}

class SubDataProtocolEditor : public QWidget
{
    Q_OBJECT

public:
    explicit SubDataProtocolEditor(QWidget *parent = nullptr);
    ~SubDataProtocolEditor();

    void InitSubDataProtocolEditor(int nType,int nMsgType = -1,const QString sInfo = "",const QString sMsg = "");

signals:
    void on_CreateSubDataProtocol(int,const QString,const QString);   //新建系统协议信号
    void on_EditorSubDataProtocol(int,const QString,const QString);    //编辑系统协议信号

private slots:
    void on_QuitBtn_clicked();
    void on_EnterBtn_clicked();

private:
    Ui::SubDataProtocolEditor *ui;
    int nEditorType;
};

#endif // SUBDATAPROTOCOLEDITOR_H
